package com.base.configuration.service.software.impl;

import com.base.common.persistent.dao.VillageConfigMapper;
import org.springframework.stereotype.Service;

import com.base.configuration.service.base.ConfigurationServiceImpl;
import com.base.configuration.service.software.SoftwareService;

import javax.annotation.Resource;

@Service("softwareService")
public class SoftwareServiceImpl extends ConfigurationServiceImpl implements
		SoftwareService {

	@Resource
	private VillageConfigMapper villageConfigMapper;

	@Override
	public String queryLastedVersion(int flag, int compoundsId) {
		return villageConfigMapper.getLastedVersionByCompoundsId(flag, compoundsId);
	}

	@Override
	public Object selectAppFlag(int compoundsId) {
		return villageConfigMapper.selectAppFlag(compoundsId);
	}
}
